{if $smarty.get.product_lang}{assign var="lang" value=$smarty.get.product_lang}{else}{assign var="lang" value=$data.tree.lng.cur}{/if}
{ext->class_function class="docum" func="get_product_fields" product_id=$smarty.get.product_id assign="product_data"}

{ext->class_function class="docum" func="get_product_group_data" group=$smarty.get.group_id assign="group_data"}
{ext->class_function class="docum" func="get_product_group_data" group=$smarty.get.tpl_group_filter assign="group_filter_data"}
<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid silver; background-color:#EDF0F2">
	<tr>
		<td height="20" style="padding:0px 20px 0px 20px ">
			{t t='Pasirinkta grupė'}: <span style="font-weight:bold">{$group_filter_data.name}</span>, {t t='pogrupis'} <span style="font-weight:bold">{$group_data.name}</span>
		</td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
{include file="admin/modules/docum/menu_goods_lang.html"}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
<form name="child_list" action="index.php" enctype="multipart/form-data" method="post">
<input name="admin" type="hidden" value="1">
<input name="module" type="hidden" value="docum">
<input name="mod" type="hidden" value="product">
<input name="act" type="hidden" value="mod">
<input name="product_lang" type="hidden" value="{$lang}">
<input name="parent" type="hidden" value="{$smarty.get.product_id}">
<input name="referer" type="hidden" value="{ext->get_referer}">

<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid #C4CDD2 ">
	<tr>
		<td style="border:1px solid #DBE1E5; padding:5px 5px 0px 5px; background-color:#FFFFFF ">
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="50" bgcolor="#FFFFFF" style="border:1px solid #8CA2B1;">		
		{assign var="goods" value=$product_data.$lang}
		{ext->countArray array=$goods assign="goods_count"}
		{if $goods_count > 0}
			{include file="admin/modules/docum/selector.html"}
		{else}
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td height="50" bgcolor="#FFFFFF" style="text-align:center">		
					{t t='Nera nei vieno lauko'}
				</td>		
			</tr>
		</table>
		{/if}
		</td>		
	</tr>
</table>
{ext->countArray array=$goods assign="goods_count"}
{if $goods_count > 0}
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td bgcolor="#FFFFFF" height="5" width="150">						
		<input onClick="doSubmit('child_list'); return false;" type="button" value="{t t="Išsaugoti pakeitimus"}" class="defaultFormButton" style="margin:10px ">
		</td>		
		<td bgcolor="#FFFFFF" height="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{/if}
</form>
		</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
{include file="admin/modules/docum/menu_goods_lang.html"}